package routers

import (
	"github.com/astaxie/beego"
)

func init() {

	beego.GlobalControllerRouter["golang-blog/controllers/blog:AboutController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:AboutController"],
		beego.ControllerComments{
			"Get",
			`/about.html`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["golang-blog/controllers/blog:LoginController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:LoginController"],
		beego.ControllerComments{
			"Get",
			`/login`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["golang-blog/controllers/blog:LoginController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:LoginController"],
		beego.ControllerComments{
			"Post",
			`/login`,
			[]string{"post"},
			nil})

	beego.GlobalControllerRouter["golang-blog/controllers/blog:LogoutController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:LogoutController"],
		beego.ControllerComments{
			"Get",
			`/logout`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"],
		beego.ControllerComments{
			"Get",
			`/topic/:url.html`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"],
		beego.ControllerComments{
			"GetNewTopicHtml",
			`/new`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"],
		beego.ControllerComments{
			"NewTopic",
			`/new`,
			[]string{"post"},
			nil})

	beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"],
		beego.ControllerComments{
			"DelTopic",
			`/del/:tid`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"],
		beego.ControllerComments{
			"ModifyTopic",
			`/modify/:tid`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"] = append(beego.GlobalControllerRouter["golang-blog/controllers/blog:TopicController"],
		beego.ControllerComments{
			"ModifyTopicPost",
			`/modify/:tid`,
			[]string{"post"},
			nil})

}
